package org.jeecg.modules.product.risk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 检查表
 * @Author: jeecg-boot
 * @Date:   2024-05-21
 * @Version: V1.0
 */
@Schema(description="检查表")
@Data
@TableName("tb_base_check")
public class TbBaseCheck implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Excel(name = "创建人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**检查表名称*/
	@Excel(name = "检查表名称", width = 15)
    @Schema(description = "检查表名称")
    private String name;
	/**检查标准类型*/
	@Excel(name = "检查标准类型", width = 15)
    //@Dict(dicCode = "inspectionStandardType")
    @Schema(description = "检查标准类型")
    private String inspectionStandardType;
	/**检查目的*/
	@Excel(name = "检查目的", width = 15)
    @Schema(description = "检查目的")
    private String aim;
	/**检查要求*/
	@Excel(name = "检查要求", width = 15)
    @Schema(description = "检查要求")
    private String demand;
	/**附件*/
	@Excel(name = "附件", width = 15)
    @Schema(description = "附件")
    private String attachments;
	/**是否删除*/
	@Excel(name = "是否删除", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @Schema(description = "是否删除")
    private String deleted;
    /**租户ID*/
    private Integer tenantId;
}
